package com.akuhome.resource.controller;

import com.akuhome.resource.service.ResourceService;
import com.akuhome.resource.service.need.ClassroomNeedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/classroom/need")
public class ClassroomNeedController {
    @Autowired
    ResourceService resourceService;

    @GetMapping
    public Object getClassroomNeedDetailInDate(Integer classroomId, Date date){
        return resourceService.findClassroomNeedDetailInDate(classroomId,date);
    }
}
